package com.wrbug.mmkw.sample

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.tencent.mmkv.MMKV
import com.wrbug.mmkw.MMKW
import java.util.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        MMKW.init(this)
        setContentView(R.layout.activity_main)
        val test = MMKW.get(Test::class.java)
        test!!.setUserName("wrbug")
        Log.i("aaaaa", test.getUserName())
        Log.i("aaaaa", test.contains("userName").toString())
        Log.i("aaaaa", Arrays.toString(test.allKeys()))
    }
}
